package day02;

public class DataTypeCastDemo {
    public static void main(String[] args) {
       /*int a=5;
        long b=a;
        System.out.println(b);

        long e=5;
        double f=e;
        System.out.println(f);
        long g=(long) f;
        System.out.println(g);

        long c=10000000000L;
        int d=(int)c;
        System.out.println(d);

        double h=5.55;
        int i=(int)h;
        System.out.println(i);*/


        byte a=5;
        byte b=6;
        byte c=(byte)(a+b);
        System.out.println(c);


        System.out.println(2+2);//4
        System.out.println('2'+'2');//100;
        System.out.println('2'+2);//52
        System.out.println('2');
        System.out.println((int)'2');//50


    }
}
